package com.newyulong.implatform.activity;

import com.newyulong.implatform.R;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.LinearLayout;
import android.widget.TextView;

/**
 * 增值业务详情
 * @author Eric
 *
 */
public class VasDetailActivity extends BaseActivity{
	private TextView tvRecommendToOther;
	private LinearLayout llRecommend;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		
		setView(R.layout.product_detail);
		setTitleBar(R.drawable.btn_back_selector, "返回", -1, "");
		SetTitle("增值业务详情");
		
		findViews();
		initRes();
		setValues();
		setListeners();
		
		
	}

	private void setListeners() {
		tvRecommendToOther.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				if(llRecommend.getVisibility() == View.VISIBLE){
					llRecommend.setVisibility(View.GONE);
				} else {
					llRecommend.setVisibility(View.VISIBLE);
				}
			}
		});
		
	}

	private void setValues() {
		// TODO Auto-generated method stub
		
	}

	private void initRes() {
		// TODO Auto-generated method stub
		
	}

	private void findViews() {
		tvRecommendToOther = (TextView) findViewById(R.id.tv_recommend_to_other);
		llRecommend = (LinearLayout) findViewById(R.id.ll_recommend);
	}

	@Override
	protected void HandleTitleBarEvent(int buttonId) {
		// TODO Auto-generated method stub
		if(buttonId == 0 ){
			finish();
		} else if(buttonId == 1){
			
		}
	}
}
